package com.dmw.service;


import com.dmw.dto.Dto;
import com.dmw.service.impl.PayConsumerServiceImpl;
import com.dmw.vo.PayVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "p-pay",fallback= PayConsumerServiceImpl.class)
public interface PayConsumerService {


    @GetMapping("createqccode")
    public Dto createqccode(@RequestParam String orderNo);

    @GetMapping("alipay")
    public Object alipay(@RequestParam String orderNo);

    @PostMapping("callback")
    public String callback(@RequestBody PayVo vo);
}
